package org.paradise.pojo;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;
public class Equip implements Serializable {
    private Integer id;  //设备id
    private String name;   //设备名称
    private Integer equipTypeid;   //设备类型id
    private Integer num;   //乘坐人数
    private String address;    //产地
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date timer;     //生产日期
    private EquipType equipType;   //设备类型

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getEquipTypeid() {
        return equipTypeid;
    }

    public void setEquipTypeid(Integer equipTypeid) {
        this.equipTypeid = equipTypeid;
    }

    public Integer getNum() {
        return num;
    }

    public void setNum(Integer num) {
        this.num = num;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public Date getTimer() {
        return timer;
    }

    public void setTimer(Date timer) {
        this.timer = timer;
    }

    public EquipType getEquipType() {
        return equipType;
    }

    public void setEquipType(EquipType equipType) {
        this.equipType = equipType;
    }
    @Override
    public String toString() {
        return "Equip{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", equipTypeid=" + equipTypeid +
                ", num=" + num +
                ", address='" + address + '\'' +
                ", timer=" + timer +
                ", equipType=" + equipType +
                '}';
    }
}